home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / infosrvr / dev / www_talk.930 / 000196_evas@cs.few.eur.nl _Wed Aug 5 16:51:42 1992.msg < prev    next >
Internet Message Format  |  1994-01-24  |  2KB

  1. Return-Path: <evas@cs.few.eur.nl>
  2. Received: from dxmint.cern.ch by  nxoc01.cern.ch  (NeXT-1.0 (From Sendmail 5.52)/NeXT-2.0)
  3.     id AA23605; Wed, 5 Aug 92 16:51:42 MET DST
  4. Received: by dxmint.cern.ch (dxcern) (5.57/3.14)
  5.     id AA14996; Wed, 5 Aug 92 16:52:00 +0200
  6. Received: from evas@slc01.cs.few.eur.nl by cs.few.eur.nl (5.67/EUR)
  7.     id AA21544; Wed, 5 Aug 92 16:51:27 +0200
  8. From: Eelco van Asperen <evas@cs.few.eur.nl>
  9. Received: by slc01.cs.few.eur.nl (5.67/EUR/BSD)
  10.     id AA20447; Wed, 5 Aug 92 16:51:21 +0200
  11. Date: Wed, 5 Aug 92 16:51:21 +0200
  12. Message-Id: <9208051451.AA20447@slc01.cs.few.eur.nl>
  13. To: www-talk@nxoc01.cern.ch
  14. Subject: Converting preformatted documents to HTML
  15.  
  16.  
  17. In our HTML files, I frequently want to refer the reader to man-pages
  18. or the GNU documentation. So, I wrote two small scripts to convert
  19. man-pages and GNU Info files to HTML and added a bit of code to
  20. the HTTPD daemon to call these filters if it found a .man or a .info
  21. file. With this, one can write f.e. 
  22.     "<A HREF=http://kaa.cs.few.eur.nl/info/gcc/gcc.info>GCC</A>"
  23. to refer to the (extensive) documentation for the GNU C compiler.
  24. So far, so good.
  25.  
  26. The Info files are the GNU equivalent of man pages and they
  27. are complete formatted documents that contain references. 
  28. The problem I've run into is that HTML does not offer a mode in 
  29. which all formatting is preserved *and* tags are recognised.
  30. The LISTING mode does preserve the formatting but does not see the 
  31. hypertext references; the NORMAL mode does recognise the references 
  32. but destroys the formatting (indentation, line breaks). 
  33. Switching from LISTING to NORMAL mode (and back) in the middle of 
  34. a paragraph is not feasible either because that will cause a blank line 
  35. to be inserted at that point.
  36.  
  37. It would be handy to have a mode that does preserve formatting and
  38. recognizes SGML tags since there are no doubt other hypertext formats
  39. that could be converted to HTML this way.
  40.  
  41. Thoughts anyone ?
  42.  
  43. Eelco van Asperen.           || Erasmus University Rotterdam
  44. internet: evas@cs.few.eur.nl || Department of Computer Science, room H4-32
  45. New, Improved, a disclaimer: || PObox 1738, 3000 DR Rotterdam, The Netherlands
  46. *** publishing private email is not allowed by the author of this message. ***
  47.